"""
免费代理ip使用 - proxies
requests.get(
url
headers
timeout
proxies
)
"""
import requests
from fake_useragent import UserAgent

url = 'http://httpbin.org/get'
headers = {'User-Agent':UserAgent(path='fake_useragent.json').random}
proxies = {
    'http' : 'http://309435365:szayclhp@221.231.46.171:20225',
    'https': 'https://309435365:szayclhp@221.231.46.171:20225',
}

html = requests.get(url=url, proxies=proxies, headers=headers).text
# 确认:html中的origin对应的IP到底是哪个?
print(html)





















